package com.group9.nepmserver.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.group9.nepmserver.mapper.AqiMapper;
import com.group9.nepmserver.pojo.Aqi;
import com.group9.nepmserver.service.IAqiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AqiServiceImpl implements IAqiService {

    @Autowired
    private AqiMapper aqiMapper;

    @Override
    public List<Aqi> listAqiAll() {
        QueryWrapper<Aqi> qw = new QueryWrapper<>();
        qw.orderByAsc("aqi_id");
        return aqiMapper.selectList(qw);
    }
}
